package com.gitee.helioz.openai.api.endpoint.chat;

import com.gitee.helioz.openai.api.dto.chat.ChatCompletionRequest;
import com.gitee.helioz.openai.api.dto.chat.ChatCompletionResponse;

/**
 * 〈聊天式对话交互服务〉
 * <pre>
 *     <a href="https://platform.openai.com/docs/api-reference/chat">文档</a>
 * </pre>
 *
 * @author <a href="https://gitee.com/helioz">Morning Starr</a>
 */
public interface ChatService {

    /**
     * 创建聊天式对话补全请求
     * <pre>
     *     <a href="https://platform.openai.com/docs/api-reference/chat/create">文档</a>
     * </pre>
     * @param ccRequest 请求对象
     * @return 响应对象
     */
    ChatCompletionResponse createChatCompletion(ChatCompletionRequest ccRequest);
}
